Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
/ docker-snmpd Public archive

🐳 SNMP daemon Docker image based on Alpine Linux

License

Notifications You must be signed in to change notification settings

crazy-max/docker-snmpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Build Status Docker Stars Docker Stars Docker Pulls Code Quality
Become a sponsor Donate Paypal

⚠️ Abandoned project

This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed.

About

🐳 SNMP daemon (snmpd) Docker image based on Alpine Linux.
If you are interested, check out my other 🐳 Docker images!

πŸ’‘ Want to be notified of new releases? Check out πŸ”” Diun (Docker Image Update Notifier) project!

Features

  • SNMP daemon patched to be able to monitor on CoreOS (use /rootfs/{dev|etc|proc|sys})
  • Fix CVE-2015-5621
  • IPv6 disabled

Ports

  • 161/udp : snmpd UDP listen port

Usage

⚠️ snmpd has been patched to use /rootfs/{dev|etc|proc|sys}.

Docker Compose

Docker compose is the recommended way to run this image. Edit the compose file with your preferences in examples/compose and run the following command :

$ docker-compose up -d
$ docker-compose logs -f

Command line

You can also use the following minimal command :

$ docker run -d --name snmpd \
  --privileged \
  -p 161:161/udp \
  -v /:/rootfs:ro \
  -v /etc/localtime:/etc/localtime:ro \
  crazymax/snmpd:latest

You can also mount your own snmpd.conf :

$ docker run -d --name snmpd \
  --privileged \
  -p 161:161/udp \
  -v /:/rootfs:ro \
  -v /etc/localtime:/etc/localtime:ro \
  -v $(pwd)/snmpd.conf:/etc/snmpd.conf \
  crazymax/snmpd:latest

Notes

If you've got the following error :

Cannot statfs /rootfs/proc/sys/fs/binfmt_misc: Symbolic link loop

Restart this service :

systemctl restart proc-sys-fs-binfmt_misc.mount

Upgrade

To upgrade, pull the newer image and launch the container :

docker-compose pull
docker-compose up -d

How can I help ?

All kinds of contributions are welcome πŸ™Œ! The most basic way to show your support is to star 🌟 the project, or to raise issues πŸ’¬ You can also support this project by becoming a sponsor on GitHub πŸ‘ or by making a Paypal donation to ensure this journey continues indefinitely! πŸš€

Thanks again for your support, it is much appreciated! πŸ™

License

MIT. See LICENSE for more details.